package com.mobsandgeeks.adapters.samples;

import com.mobsandgeeks.adapters.InstantText;

/**
 * Bookpojo
 *
 * @since 2021-04-06
 */
public class Book {
    private String bookName;
    private String bookAuthor;
    private String bookCategory;

    /**
     * 构建器
     *
     * @param bookName bookName
     * @param bookAuthor bookAuthor
     * @param bookCategory bookCategory
     */
    public Book(String bookName, String bookAuthor, String bookCategory) {
        this.setBookAuthor(bookAuthor);
        this.setBookCategory(bookCategory);

        this.setBookName(bookName);
    }

    @InstantText(viewId = ResourceTable.Id_bookName)
    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    @InstantText(viewId = ResourceTable.Id_bookAuthorName)
    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getBookCategory() {
        return bookCategory;
    }

    public void setBookCategory(String bookCategory) {
        this.bookCategory = bookCategory;
    }
}
